import request from '@/utils/request'

/**
 * 用户名登录
 */
export function login(data) {
    return request({
        url: 'api/userlogin',
        method: 'post',
        data: data
    })
}


/**
 * 退出登录
 */
export function logout(data) {
    return request({
        url: 'api/userlogout',
        method: 'post',
        data: data
    })
}

/**
 * 更改密码
 */
export function editUserInfo(data) {
    return request({
        url: '/cms/uppwd',
        method: 'post',
        data: data
    })
}

/**
 * 获取菜单
 */
export function getAuthMenu(data) {
    return request({
        url: '/ApiAdmin/HospitalNode/menus',
        method: 'get',
        params: data
    })
}


/**
 * 左侧 菜单
 */
export function treeList(data) {
    return request({
        url: 'api/userfunclist',
        method: 'post',
        data: data
    })
}